using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace WeberTimeTracker.Models.Mapping
{
    public class RateMap : EntityTypeConfiguration<Rate>
    {
        public RateMap()
        {
            // Primary Key
            this.HasKey(t => t.Rate_ID);

            // Properties
            // Table & Column Mappings
            this.ToTable("Rates");
            this.Property(t => t.Rate_ID).HasColumnName("Rate_ID");
            this.Property(t => t.rate1).HasColumnName("rate");
        }
    }
}
